package com.example.study_backstage.controller;


import com.example.study_backstage.entity.SysUser;
import com.example.study_backstage.service.SysUserService;
import com.example.study_backstage.utils.Result;
import com.example.study_backstage.utils.oConvertUtils;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author lxw
 * @since 2023年03月20日
 */
@RestController
@RequestMapping("/sysUser")
public class SysUserController {

    @Resource
    private SysUserService sysUserService;


    @GetMapping("/list")
    public Result<List<SysUser>> list() {
        return Result.OK(sysUserService.list());
    }

}

